﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ProduceBasicData.Api.DTO.ProductionManage
{
    /// <summary>
    /// 报工显示列表
    /// </summary>
    public class ShowReportdto
    {
        /// <summary>
        /// 主键id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 软删除标识
        /// </summary>
        public bool Isdel { get; set; } = false;
        /// <summary>
        /// 报工编号
        /// </summary>
        public string Report_no { get; set; }
        /// <summary>
        /// 工单管理
        /// </summary>
        public int Order_id { get; set; }
        /// <summary>
        /// 工单编号
        /// </summary>
        public string Order_no { get; set; }
        /// <summary>
        /// 工艺路线管理
        /// </summary>
        public int Process_id { get; set; }
        /// <summary>
        /// 工艺路线编码
        /// </summary>
        public string? CraftNo { get; set; }
        /// <summary>
        /// 工艺路线名称
        /// </summary>
        public string CraftName { get; set; }

        /// <summary>
        /// 报工日期
        /// </summary>
        public DateTime Production_time { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int Product_id { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string Product_no { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string Product_name { get; set; }
        /// <summary>
        /// 报工状态 1已提交,2待审批,3已完成
        /// </summary>
        public int Report_status { get; set; }
        /// <summary>
        /// 计划生产数量
        /// </summary>
        public int Plan_qty { get; set; }
        /// <summary>
        /// 生产开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 生产结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateName { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
